<?php
	
	session_start(); // start session cookies
	require("Login.class.php"); // pull in file
	$login = new Login; // create object login
	
	$login->authorize(); // make user login
?>
<!--
	=================================================================================================
	Copyright (c) 2012 Athena Health. 
	This software is the proprietary information of Athena Health
	All Right Reserved.
	Repository path:    $HeadURL: http://athena-call-routing.googlecode.com/svn/trunk/admin/update.php $
	Last committed:     $Revision: 45 $
	Last changed by:    $Author: davidjmorin@gmail.com $
	Last changed date:    $Date: 2012-07-02 21:10:12 -0400 (Mon, 02 Jul 2012) $
	ID:            $Id: index.php 45 2012-07-03 01:10:12Z davidjmorin@gmail.com $
	=================================================================================================
-->



<style type="text/css">
	body {background-color:#42520e; color: #f0cb01;
	
	}
	th {background: URL(http://www.athenahealth.com/_img/boxes/carousel_bg.png);}
	p {color:blue;}
	a:link {color: #f0cb01; text-decoration: underline; }
	a:active {color: #f0cb01; text-decoration: underline; }
	a:visited {color: #f0cb01; text-decoration: underline; }
	a:hover {color: #f0cb01; text-decoration: none; }
</style>

<?php
	$keyword = $_POST['keyword'];
	$phone = $_POST['phone'];
	$reason = $_POST['reason'];
	$block = $_POST['block'];
	$block = $_POST['block'];
	define("HOST", "localhost");
	
	$id=$_GET['keyword'];
	$bl=$_GET['block'];
	$ph=$_GET['phone'];
	$re=$_GET['Reason'];
	
	
?>
Admin Panel to Update Keywords
<hr>

<table>
	<tr><td valign="top"><br /><br />
	<img src="http://a0.twimg.com/profile_images/1138695863/twitter-icon.png" width="100px"></td>
	<td>	
		Your are editing information for Keyword: <b><? echo $_GET['id']; ?></b>
		<form method="post" action="update_ac.php">
			<table>         <tr><br /></tr>
				<tr><td>  Keyword:  </td><td> <input type="text" name="keyword" id="keyword" value="<? echo $_GET['id']; ?>">* Enter Keyword as it currently appears<br></td></tr>
				<tr><td> Block?: </td><td><input type="text" name="block" id="block" value="<? echo $_GET['bl']; ?>">* Enter New Information<br></td></tr>
				<tr><td> Phone #:</td><td> <input type="text" name="phone" id="phone" value="<? echo $_GET['ph']; ?>">* New Phone Number<br></td></tr>
				<tr><td> Reason: </td><td> <input type="text" name="reason" id="reason" value="<? echo $_GET['re']; ?>">* Enter new block description here. <br></td></tr>
				<tr><td> </td><td align="left"> <input type="submit" name="submit" value="Submit Data"></td></tr>
			</table>
		</form>
	</td></tr>
</table>		<br />
<a href="index.php">Add Keyword</a> | <a href="../admin">Back to search form</a> | 


<?php 
	//echo '<pre>'; 
	//  print($_GET); 
	//echo '</pre>'; 
?> 




<a href="index.php?action=clear_login">logout</a>
</body>
